package com.shux.usermanager.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.shux.common.dao.impl.BaseBeanDaoImpl;
import com.shux.usermanager.dao.ISysButtonPermissionDao;
import com.shux.usermanager.entity.SysButtonPermission;
import com.shux.utils.page.PageData;

/**
 **********************************************
 *  描述：
 * Simba.Hua
 * 2017年6月19日
 **********************************************
**/
//@Repository("sysButtonPermissionDao")
public class SysButtonPermissionDaoImpl extends BaseBeanDaoImpl<SysButtonPermission> /*implements ISysButtonPermissionDao*/ {
    private final static String WORKSPACENAME = "com.shux.usermanager.dao.SysButtonPermissionMapper";
    @Override
    public String getWorkSpaceName() {
        // TODO Auto-generated method stub
        return WORKSPACENAME;
    }
    //@Override
    public List<SysButtonPermission> queryAll() throws Exception {
        return super.findForList("queryAll", null);
    }
   // @Override
    public List<SysButtonPermission> queryButtonByRole(String roleId) throws Exception {
        // TODO Auto-generated method stub
        PageData param = new PageData();
        param.put("roleId", roleId);
        return super.findForList("queryButtonByRole", param);
    }

}
